import Vue from "vue";
import Router from "vue-router";

Vue.use(Router);

export const routes = [
  {
    path: "/",
    redirect: "/gantt",
    // redirect: "/login",
  },
  {
    path: "/login",
    component: () => import("@/views/login.vue"),
  },
  {
    path: "/gantt",
    component: () => import("@/views/gantt.vue"),
  },
];



const createRouter = () =>
  new Router({
    scrollBehavior: () => ({ y: 0 }),
    routes,
  });

const router = createRouter();

export default router;
